<?php
class Order_Service_OrderStatistics
{
	//'统计类型:0打印;1配货;2打包;3出货'
	public static $otClassArr = array(0=>'打印',1=>'配货',2=>'打包',3=>'出货');
	
	public static function getByCond($cond=array(),$type='*',$pageSize=20,$page=1,$order=array())
	{ 
		$obj=new Order_Model_OrderStatistics();
		$rows= $obj->getByCond( $cond,$type,$pageSize,$page,$order);	
		return $rows;
	}
	
	public static function getByfield($field,$value)
	{ 
		$obj=new Order_Model_OrderStatistics();
		$rows=$obj->getByfield($field,$value);
		if(!empty($rows)){
			$rows=$rows->toArray();
		}
		return $rows;
	}		
	
	public static function add($row)
	{ 
		$obj=new Order_Model_OrderStatistics();
		return $obj->add($row);
	}

	public static function update($row,$t_id)
	{ 
		$obj=new Order_Model_OrderStatistics();
		return $obj->update($row,$t_id);
	}
	
	public static function updateByField($row,$field,$value)
	{ 
		$obj=new Order_Model_OrderStatistics();
		return $obj->updateByField($row,$field,$value);
	}
	
	public static function deleteByField($field,$value)
	{ 
		$obj=new Order_Model_OrderStatistics();
		return $obj->deleteByField($field,$value);
	}
	
	public static function getRowByCond($cond)
	{ 
		$obj = new Order_Model_OrderStatistics();
		$row = $obj->getRowByCond($cond);	
		return $row;
	}
	
	public static function updateByCond($row,$cond)
	{ 
		$obj=new Order_Model_OrderStatistics();
		return $obj->updateByCond($row,$cond);
	}
		
}